﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.Data;


namespace GPCSC.Web.sjs
{
    /// <summary>
    /// selGGH 的摘要说明
    /// </summary>
    public class selGGH : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            //
            string lgid = context.Request.QueryString["lgid"];
            string type = context.Request.QueryString["type"];
            DataSet ds = new GGH_T().F_bound(lgid, type);
            string retustring = "";
            if (ds.Tables.Count > 0)
            {
               
                if (ds.Tables[0].Rows.Count > 0)
                {
                    foreach (DataRow dr in ds.Tables[0].Rows)
                    {
                        retustring += dr["GGHID"].ToString();
                        retustring += "|";
                        retustring += dr["HZName"].ToString();

                        retustring += "#";
                    }

                }
            }
            context.Response.Write(retustring);
            
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }

    }
}